package com.strive.village.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class TbResident{

    private static final long serialVersionUID = 1L;

    @TableId(value = "resident_id", type = IdType.AUTO)
    private Integer residentId;

    /**
     * 外键，关联村名信息表
     */
    private Integer villageId;

    /**
     * 村民姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 性别
     */
    private String gender;

    /**
     * 职业
     */
    private String occupation;

    /**
     * 电话
     */
    private String contactNumber;
}
